package com.sun.issue;

import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 问题 对象类
 * 
 * @since 2018年5月15日 下午3:40:30
 * @author wux
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Issue implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;

	private Project project;

	private String project_id;

	private Tracker tracker;

	private Status status;

	private Priority priority;

	private Author author;

	private AssignedTo assigned_to;

	private String subject;

	private String description;

	private String start_date;

	private int done_ratio;

	private List<CustomerFields> custom_fields;

	private List<Upload> uploads;

	private String created_on;

	private String updated_on;

	private String closed_on;

	private List<Journals> journals;
	
	private String assigned_to_id;
	
	//优先级
	private String priority_id;
	//事件提出人
	private String userId;
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<CustomerFields> getCustom_fields() {
		return custom_fields;
	}

	public void setCustom_fields(List<CustomerFields> custom_fields) {
		this.custom_fields = custom_fields;
	}

	public List<Upload> getUploads() {
		return uploads;
	}

	public void setUploads(List<Upload> uploads) {
		this.uploads = uploads;
	}

	public Tracker getTracker() {
		return tracker;
	}

	public void setTracker(Tracker tracker) {
		this.tracker = tracker;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	public Priority getPriority() {
		return priority;
	}

	public void setPriority(Priority priority) {
		this.priority = priority;
	}

	public Author getAuthor() {
		return author;
	}

	public void setAuthor(Author author) {
		this.author = author;
	}

	public AssignedTo getAssigned_to() {
		return assigned_to;
	}

	public void setAssigned_to(AssignedTo assigned_to) {
		this.assigned_to = assigned_to;
	}

	public String getStart_date() {
		return start_date;
	}

	public void setStart_date(String start_date) {
		this.start_date = start_date;
	}

	public int getDone_ratio() {
		return done_ratio;
	}

	public void setDone_ratio(int done_ratio) {
		this.done_ratio = done_ratio;
	}

	public String getCreated_on() {
		return created_on;
	}

	public void setCreated_on(String created_on) {
		this.created_on = created_on;
	}

	public String getUpdated_on() {
		return updated_on;
	}

	public void setUpdated_on(String updated_on) {
		this.updated_on = updated_on;
	}

	public String getClosed_on() {
		return closed_on;
	}

	public void setClosed_on(String closed_on) {
		this.closed_on = closed_on;
	}

	public List<Journals> getJournals() {
		return journals;
	}

	public void setJournals(List<Journals> journals) {
		this.journals = journals;
	}

	public String getProject_id() {
		return project_id;
	}

	public void setProject_id(String project_id) {
		this.project_id = project_id;
	}

	public String getAssigned_to_id() {
		return assigned_to_id;
	}

	public void setAssigned_to_id(String assigned_to_id) {
		this.assigned_to_id = assigned_to_id;
	}

	public String getPriority_id() {
		return priority_id;
	}

	public void setPriority_id(String priority_id) {
		this.priority_id = priority_id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "Issue{" +
				"id='" + id + '\'' +
				", project=" + project +
				", project_id='" + project_id + '\'' +
				", tracker=" + tracker +
				", status=" + status +
				", priority=" + priority +
				", author=" + author +
				", assigned_to=" + assigned_to +
				", subject='" + subject + '\'' +
				", description='" + description + '\'' +
				", start_date='" + start_date + '\'' +
				", done_ratio=" + done_ratio +
				", custom_fields=" + custom_fields +
				", uploads=" + uploads +
				", created_on='" + created_on + '\'' +
				", updated_on='" + updated_on + '\'' +
				", closed_on='" + closed_on + '\'' +
				", journals=" + journals +
				", assigned_to_id='" + assigned_to_id + '\'' +
				", priority_id='" + priority_id + '\'' +
				", userId='" + userId + '\'' +
				'}';
	}
}
